<!DOCTYPE html>
<head>
<title>LED 控制</title>
</head>
<body>
<center>
{% for pin in pins %}
<p>{{ pins[pin].name }}
{% if pins[pin].state == true %}
 (<a href="/{{pin}}/off">关闭</a>)
{% else %}
 (<a href="/{{pin}}/on">打开</a>)
{% endif %}
</p>
{% endfor %}
{% if message %}
<h3>{{ message }}</h3>
{% endif %}
</center>
</body>
</html>
